package models.common.bean;


import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

import models.common.entity.t_digital_commercial_paper.DigitalStatus;
import play.db.jpa.Model;

import common.constants.ConfConst;
import common.constants.Constants;
import common.utils.Security;
import common.utils.number.Arith;
/**
 * 背书表
 *@author xiaojun
 *@version 2017-4-14 下午2:18:51
 */
@Entity
public class Endorse{
	/**
	 * 构造器
	 */
	@Id
	public long id;
	
	public Endorse(){};
	@Transient
	public String signId;
	public String getSignId () {
		
		return Security.addSign(this.id, Constants.BID_ID_SIGN, ConfConst.ENCRYPTION_KEY_DES);
	}
    
	/**现在的商票id（关联到商票表）  */
    public long commer_paper_id;
    
    /**操作人id */
    public String operator_id;
    
    /**操作人名称 */
    public String operator_name;
    
    /**被背书企业id*/
    public long receive_id;
    
    /**背书企业id*/
    public long open_ticket_id;

    /**'付款时间(到期时间)' */
    public Date paper_datetime;

    /**被背书人*/
    public String receive_name;

    /**背书人*/
    public String open_ticket_name;
}